#!/bin/sh


$HADOOP_HOME/bin/hadoop fs -rmr output/failurecause/$1
$HADOOP_HOME/bin/hadoop jar failurecause.jar org.PP.FailureCause /user/hadoop/input/$1/event_trace/event_trace.tab /user/hadoop/output/failurecause/$1
echo "Result available in /user/hadoop/output/failurecause/$1: $HADOOP_HOME/bin/hadoop fs -cat /user/hadoop/output/failurecause/$1/part-00000"
echo "-------------------------"
echo "PRINTING..."
echo "-------------------------"
$HADOOP_HOME/bin/hadoop fs -cat /user/hadoop/output/failurecause/$1/part-00000
